body {
    position: relative;
}

//版心
@mixin container {
    width: 1200px;
    margin: 0 auto;
    // background-color: gold;
}

//文字样式
@mixin afonts {
    text-decoration: none;
    color: #000;
}

/* 主体 */
#main {
    //左导航+轮播
    .indexBanner {
        @include container();
        display: flex;

        // 左侧导航
        .leftnav {
            width: 220px;
            height: 369px;
            background-color: rgb(252, 249, 227);

            a {
                display: inline-block;
                width: 100%;
                height: 41px;
                line-height: 41px;
                color: #000;
                font-size: 14px;
                padding-left: 53px;
                box-sizing: border-box;

                &:hover {
                    background-color: white;
                }

                span {
                    &:hover {
                        color: red;
                    }
                }

                .iconfont {
                    font-weight: bold;
                    font-size: 13px;
                    color: rgb(167, 156, 149);
                    margin-right: 10px;

                    &:hover {
                        color: rgb(167, 156, 149);
                    }
                }
            }
        }

        // 右侧轮播
        .rightBanner {
            width: 970px;
            height: 369px;
            margin-left: 10px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;

            // 上轮播
            .bannerTop {
                display: flex;
                justify-content: space-between;

                .slider {
                    width: 660px;
                    height: 234px;
                    
                    img{
                        width: 660px;
                        height: 234px;
                    }
                }

                .topRight {
                    width: 298px;
                    height: 234px;
                    cursor: pointer;
                    box-sizing: border-box;
                    background-color: #fff4e4;
                    position: relative;

                    &:hover {
                        box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
                    }

                    h3{
                        font-size: 24px;
                        color: #ff5817;
                        font-weight: bold;
                        padding: 24px 0px 15px 13px;
                        box-sizing: border-box;
                    }
                    .bg{
                        width: 141px;
                        height: 34px;
                        background: url('../img/bg.png');
                    }
                    p{
                        font-size: 18px;
                        color: #fff;
                        position: absolute;
                        top: 71px;
                        left: 10px;
                    }
                    img{
                        width: 134px;
                        height: 134px;
                        margin-left: 130px;
                    }
                }
            }

            // 下轮播
            .bannerBottom {
                display: flex;
                justify-content: space-between;
                width: 100%;
                height: 128px;

                // 左
                a {
                    display: inline-block;
                    width: 325px;
                    border-radius: 18px;
                    display: flex;

                    &:hover {
                        box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
                    }

                    .mesg {
                        color: #fff;
                        padding: 26px 34px 16px 34px;
                        box-sizing: border-box;

                        h3 {
                            height: 29px;
                            font-size: 22px;
                            font-weight: bold;
                        }

                        p {
                            height: 24px;
                            font-size: 18px;
                        }

                        span {
                            display: inline-block;
                            width: 47px;
                            height: 20px;
                            text-align: center;
                            line-height: 20px;
                            background-color: white;
                            color: #000;
                            border-radius: 10px;
                            margin-top: 8px;
                        }
                    }

                    .pic {
                        img {
                            width: 125px;
                            height: 125px;
                        }
                    }
                }
                a:nth-child(1){
                    .mesg{
                        span{
                            color: #fca6c0;
                        }
                    }
                    background: linear-gradient(270deg,#ffd1dd,#fca6c0);;
                }
                a:nth-child(2){
                    .mesg{
                        span{
                            color: #fec07e;
                        }
                    }
                    background: linear-gradient(270deg,#fffffe,#fec07e);
                }
                
                // 右
                .bottomRight {
                    width: 297px;
                    border-radius: 8px;
                    align-items: center;
                    background: linear-gradient(270deg,#e7f5ff,#afdcff);

                    .mesg {
                        padding: 26px 30px 16px 34px;
                        
                    }

                    .pic {
                        img {
                            width: 100px;
                            height: 100px;
                            border: 8px solid #afdcff;
                            border-radius: 18px;
                            box-sizing: border-box;
                        }
                    }
                }
            }
        }
    }

    // 小编精选
    .choice {
        @include container();
        height: 56px;
        display: flex;
        background-color: white;
        margin-top: 10px;
        margin-bottom: 20px;

        h3,
        p {
            height: 56px;
            line-height: 56px;
        }

        h3 {
            font-size: 18px;
            margin-left: 53px;
        }

        p {
            font-size: 14px;
            margin-left: 30px;
            color: rgb(135, 122, 115);
        }
    }

    // 商品列表
    .goods {
        @include container();
        height: 100%;
        box-sizing: border-box;
        padding-left: 6px;
        display: flex;
        flex-direction: column;

        .goodsList {
            width: 1200px;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
        }

        li {
            margin-right: 10px;
            margin-bottom: 25px;

            .product {
                width: 276px;
                height: 389px;
                display: block;
                color: #000;
                background-color: white;
                cursor: pointer;

                &:hover {
                    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
                }

                img {
                    width: 276px;
                    height: 276px;
                }

                .mesg {
                    padding: 10px 17px 17px 17px;
                    box-sizing: border-box;
                    font-size: 14px;
                    color: #877a73;

                    .title {
                        width: 242px;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        margin: 0 auto;
                    }

                    .main {
                        height: 20px;
                        line-height: 20px;
                        margin-top: 16px;
                        display: flex;
                        justify-content: space-between;

                        p {
                            width: 40px;
                            background-color: #df2b2f;
                            color: #fff;
                            border-radius: 2px;
                            line-height: 20px;
                            text-align: center;
                        }

                        span {
                            margin-right: 10px;
                        }
                    }

                    .foot {
                        height: 22px;
                        line-height: 22px;
                        margin-top: 22px;
                        display: flex;
                        justify-content: space-between;
                        align-items: flex-end;

                        .left {
                            display: flex;
                            align-items: flex-end;

                            p {
                                display: flex;
                                align-items: flex-end;
                                margin-right: 5px;
                            }

                            .price {
                                color: rgb(250, 88, 90);
                                font-size: 28px;

                                .f {
                                    font-size: 12px;
                                }
                            }
                        }

                        .right {
                            width: 50px;
                            height: 20px;
                            border: 1px solid red;
                            color: red;
                            text-align: center;
                            line-height: 20px;
                            border-radius: 2px;
                            font-size: 12px;
                        }
                    }
                }
            }
        }

        button {
            width: 250px;
            height: 70px;
            background-color: rgb(254, 228, 78);
            font-size: 24px;
            line-height: 70px;
            border: 0px solid #000;
            border-radius: 35px;
            margin: 75px auto;
            cursor: pointer;
        }
    }
}
